package com.aytbayev.resmi;

import java.util.Comparator;

public class InstrumentComparator implements Comparator<Instrument>{
	
    public int compare(Instrument o1, Instrument o2) {
    	if (o1 != null && o2 != null) {
    		return o1.getShortName().compareTo(o2.getShortName());
    	} else {
    		return 0;
    	}
    }    
}
